package com.lkm.app_ui.ui.fj.to;

import com.google.gson.annotations.SerializedName;
import com.lkm.app_ui.ui.fj.FjOrder;

public class FjOrderItemTo {

    @SerializedName("balance_goods_weight")
    private String balance_goods_weight;


    @SerializedName("balance_goods_img")
    public String balance_goods_img;

    public static FjOrderItemTo by(String orderNo, FjOrder.FjItem fjItem) {
        FjOrderItemTo to = new FjOrderItemTo();
        to.id = fjItem.id;
        to.orderNo = orderNo;
        to.goodsName = fjItem.goodsName;
        to.amount = fjItem.price;
        to.balance_goods_weight  = fjItem.realWeight;
        to.balance_goods_img = fjItem.img_on;
        return to;
    }




    @SerializedName("id")
    public String id;


    @SerializedName("order_no")
    public String orderNo;


    @SerializedName("goods_name")
    public String goodsName;


    @SerializedName("goods_weight")
    public String goodsWeight;


    @SerializedName("amount")
    public float amount;


    @SerializedName("max_goods_weight")
    public String maxGoodsWeight;


    @SerializedName("min_goods_weight")
    public String minGoodsWeight;

}